package com.Mt.Controller;

import com.Mt.Dto.Dto;
import com.Mt.Service.MtTicketService;
import com.Mt.Utils.DtoUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * （Ticket）表控制层
 *
 * @author 李东辉
 */
@RestController
@RequestMapping("/mtTicket")
public class MtTicketController {

    /**
     * 服务对象
     */
    @Reference
    private MtTicketService mtTicketService;

    /**
     * 查询全部
     */
    @GetMapping("/selti")
    public Dto seltick(){
        return DtoUtil.returnSuccessData(mtTicketService.seltick());
    }
}
